package app.config;

import app.controller.HelloController;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.render.ViewType;

public class config extends JFinalConfig {

	@Override
	public void configConstant(Constants me)
	{
		me.setDevMode(true);
		me.setViewType(ViewType.JSP);
	}

	@Override
	public void configRoute(Routes me)
	{
		me.add("/hello",HelloController.class);
	}

	@Override
	public void configPlugin(Plugins me)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void configInterceptor(Interceptors me)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void configHandler(Handlers me)
	{
		me.add(new IgnoreHandler());
		// TODO Auto-generated method stub

	}

}
